widget: Add a :focusable property
authorMatthias Clasen <mclasen@redhat.com>
Tue, 5 May 2020 18:57:21 +0000 (14:57 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 11 May 2020 03:24:48 +0000 (23:24 -0400)
commitedc31a264c6778274376e892dc38ab186c952c4a
tree90f976c6f00ba5803249f5db904e65b97ee0cde5
parentf6a4e68973fcf78504e320453c576abb789d9e03
widget: Add a :focusable property

Add back a property that determines whether an individual
widget will accept focus or not. :can-focus prevents the
focus from ever entering the entire widget hierarchy
below a widget, and :focusable just determines if grabbing
the focus to the widget itself will succeed.

See #2686
25 files changed:
docs/reference/gtk/gtk4-sections.txt
gtk/gtkbutton.c
gtk/gtkcalendar.c
gtk/gtkcellrendereraccel.c
gtk/gtkcolorplane.c
gtk/gtkcolorswatch.c
gtk/gtkdrawingarea.c
gtk/gtkexpander.c
gtk/gtkiconview.c
gtk/gtklabel.c
gtk/gtklistbox.c
gtk/gtkmodelbutton.c
gtk/gtknotebook.c
gtk/gtkpaned.c
gtk/gtkpopovermenubar.c
gtk/gtkscale.c
gtk/gtkscrolledwindow.c
gtk/gtkswitch.c
gtk/gtktext.c
gtk/gtktextview.c
gtk/gtktreeview.c
gtk/gtktreeviewcolumn.c
gtk/gtkwidget.c
gtk/gtkwidget.h
gtk/gtkwidgetprivate.h